package com.azdebugit.future.vip.executorcompletion.test;

import java.util.List;
import java.util.concurrent.Callable;
 
/**
 * 描    述：获取任务的线程
 * 作    者：java潇邦
 * 时    间：2016-09-01
 */
public class ListCallable implements Callable {
 
    private String vendorCode;
 
    private List<String> barcodeList;
 
    private ThirdService thirdService;
 
    public ListCallable(String vendorCode, List<String> barcodeList, ThirdService thirdService) {
        this.vendorCode = vendorCode;
        this.barcodeList = barcodeList;
        this.thirdService = thirdService;
    }
 
    @Override
    public Object call() throws Exception {
        return thirdService.getProductList(vendorCode, barcodeList);
    }
}